<template>
    <div class="card rdsp-card-view maintainceTodayCheck-page" data-page="maintainceTodayCheck">
        <div class="card-content card-content-padding">
            <div class="maintaince-card-title">
                <!-- <span class="icon"></span> -->
                <span>今日签到</span>
                <span id="checkNum" style="float: right;"></span>
            </div>
            <div class="maintainceTodayCheck-con" id="maintainceTodayCheckList"></div>
        </div>
    </div>
</template>
<style scoped>
    .maintainceTodayCheck-page .each-today-check .center{
        overflow: hidden;
    }
</style>
<script>
    return {
        data:function () {
            return{
            }
        },
        methods: {
            getTodySign:function(){
                let self = this;
                $("#maintainceTodayCheckList").empty();
                Dao.getOrgTodaySignList({
                	orgId:single_Orgid_wbdw
                },function(data){
                    if(data && data.length > 0){
                        let html = "";
                        for(let i=0;i<data.length;i++){
                            html += `
                                <div class="each-today-check">
                                    <div class="top">
                                        <img src="`+picPeopleNo(data[i].signPicUrl)+`">
                                    </div>
                                    <div class="center">`+common.transNullundefinedToline(data[i].userName)+`</div>
                                    <div class="bottom">`+moment(data[i].signDate).format("HH:mm:ss")+`</div>
                                </div>
                            `;
                        }
                        $("#maintainceTodayCheckList").append(html);
                    }else{
                        $("#checkNum").html('0');
                    	/*$("#maintainceTodayCheckList").append(`<div class="no-data-img"><img src="`+listNoDataPic()+`"/></div>`);*/
                    }
                });
            }
        },
        on: {
            pageAfterIn: function (e, page) {
                var self = this;
                self.getTodySign();
            }
        }
    }
</script>